// pages/cart/cart.ts
Page({

  /**
   * 页面的初始数据
   */
  data: {
    isLoading: true,
    shopInfo: null,
    location: null,
    addressInfo: null,
    choosingAddress: false,
    cartInfo: [{
      shopId: 1,
      goodsId: 1,
      productId: 3,
      goodsNumber: 4,
      checked: true,
      img: 'https://images.pexels.com/photos/1443867/pexels-photo-1443867.jpeg?cs=srgb&dl=pexels-reto-b%C3%BCrkler-1443867.jpg&fm=jpg',
      goodsInfo: {
        name: "水稻田",
      },
      specs: "农用地块",
      productInfo: {
        retailPrice: 123
      }
    },
    {
      shopId: 2,
      goodsId: 2,
      productId: 4,
      goodsNumber: 5,
      checked: false,
      img: 'https://images.pexels.com/photos/1443867/pexels-photo-1443867.jpeg?cs=srgb&dl=pexels-reto-b%C3%BCrkler-1443867.jpg&fm=jpg',
      goodsInfo: {
        name: "池塘",
      },
      specs: "鱼牧地块",
      productInfo: {
        retailPrice: 123
      }
    }
  ],
    allSelected: true,
    amountTotal: 0.00,
    editMode: false,
    selectedCount: 0,
    cartEmptyTop: .1,
    xToast: { show: false }
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad() {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})